import requests

# 调用登录接口
r = requests.post("http://127.0.0.1:8000/login", json={"username": "liubei", "password": "123"})

print(r.json())
print(type(r.json()))